package SchoolSubjects3;

public class Students extends SchoolPersonnel { // 学生类

    public Students(int number, String name, String sex, Curriculums[] curriculums) {
        super(number, name, sex, curriculums);
    }

    public void choiceCurriculums(Students student, int n, Curriculums curriculums1) { // 选课方法
        student.getCurriculums()[n] = curriculums1;
        System.out.println(student.getname() + " 选择 " + student.getCurriculums()[n].getcurriculumsname() + " 课程成功");
    }

    public void outCurriculums(Students student, int n) { // 退课方法
        System.out.println(student.getname() + " 退选 " + student.getCurriculums()[n].getcurriculumsname() + " 课程成功");
        student.getCurriculums()[n] = null;
    }

}